using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace yq.Model.Logic
{
    /// <summary>
    /// Vote_Log - 投票日志 - 对象继承类
    /// </summary>
    [MetadataType(typeof(VoteLogValidaTion))]
    public class VoteLog : IVoteLog<VoteLog>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class VoteLogValidaTion
       {

     

        /// <summary>
        /// 投票日志
        /// </summary>
        [Display(Name ="投票日志")]
        [Required]
        [StringLength(36)]
        public String LogId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 投票ID
        /// </summary>
        [Display(Name ="投票ID")]
        [Required]
        [StringLength(36)]
        public String VoteId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 投票人
        /// </summary>
        [Display(Name ="投票人")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 投票值
        /// </summary>
        [Display(Name ="投票值")]
        [Required]
        [StringLength(20)]
        public String VoteValue
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
